package com.xidian.zhiancloud.dao.riskcontrol.riskidenva;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xidian.zhiancloud.model.riskcontrol.TRiskAssessmentMeasuresList;
import com.xidian.zhiancloud.model.riskcontrol.entity.TEquipFacStaGY00Entity;
import com.xidian.zhiancloud.model.riskcontrol.entity.TEquipFacStaSS00Entity;
import com.xidian.zhiancloud.model.riskcontrol.entity.TEquipFacStaZY00Entity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 风险评价措施表
 */
public interface TRiskAssessmentMeasuresMapper extends
        BaseMapper<TRiskAssessmentMeasuresList> {

    //风险评价-检查项-评价-添加/修改风险评价措施
    int insertTRiskAsseMeas(@Param("data") TRiskAssessmentMeasuresList data);

    //风险评价-检查项-评价-修改风险评价措施
    int updateTRiskAsseMeas
    (@Param("id") Long id,@Param("data") TRiskAssessmentMeasuresList data);

    List<TRiskAssessmentMeasuresList> getById(
            @Param("companyId") Long companyId,@Param("tramId") String tramId);

    //风险辨识评价计划-风险评价按钮-检查项-评价按钮
    List<TRiskAssessmentMeasuresList> getByRisIdAndRiskpointsIdAndCheckitemsId
            (@Param("companyId") Long companyId,
             @Param("taskAllocatId") String taskAllocatId,
             @Param("checkitemsId") String checkitemsId);

    int updateIdAndAssessMeas(@Param("riskAssmeaId") String riskAssmeaId,
          String exiengtechnicalMeasures,
          String eximanagementMeasures,String exitraieducatMeasures,
          String exipersprotecMeasures,String exiemergencyMeasures);

    //风险辨识评价计划-风险评价按钮-检查项-评价按钮
    List<TRiskAssessmentMeasuresList> getByTAllIdCheckitemsId(Long companyId,
         List<String> taskAllIdList,List<String> cheItIdList);

    int addSS00AsseList(@Param("companyId") Long companyId, @Param("userId") String userId,
                    @Param("list") List<TEquipFacStaSS00Entity> list);

    int addZY00AsseList(@Param("companyId") Long companyId, @Param("userId") String userId,
                    @Param("list") List<TEquipFacStaZY00Entity> list);

    int addGY00AsseList(@Param("companyId") Long companyId, @Param("userId") String userId,
                    @Param("list") List<TEquipFacStaGY00Entity> list);
    
    
}
